`cd` into the `agent-infra-aws` directory

```bash
cd agent-infra-aws
```

Start your Agent Infra AWS using the following:

<CodeGroup>

```bash shorthand
ag infra up prd:aws
```

```bash expanded notation
ag infra up --env prd --infra aws
```

</CodeGroup>

This command will:

1. Create and push a Docker image to AWS ECR. In the directory defined by you in `InfraSettings`.
2. Create the following resources on AWS:

```bash
- AWS Secrets
- AWS Db Subnet Group
- AWS RDS Instance
- AWS Load Balancer
- AWS Target Group
- AWS Listener
- AWS ECS Cluster
- AWS ECS Service
- AWS ECS Task
- AWS ECS Task Definition
```

**Press Enter** to confirm and give a few seconds for the image to download (only the first time). Verify resources in the AWS console.

<Note>

The RDS database takes about 5 minutes to activate. You can check the status in the AWS console.

</Note>

## Stop Agent Infra on AWS

Play around with the AgentOS and stop it using:

<CodeGroup>

```bash shorthand
ag infra down prd:aws
```

```bash expanded notation
ag infra down --env prd --infra aws
```

</CodeGroup>
